package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelPageVo;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingLevelMapper {

    List<NursingLevelVo> selectAll();

    Page<NursingLevel> selectByPage(String name, Integer status);

    NursingLevelPageVo selectById(Long id);

    void insert(NursingLevel nursingLevel);

    void update(NursingLevel nursingLevel);

    @Delete("delete from zzyl.nursing_level where id = #{id}")
    void deleteById(Long id);

    void updateByIdAndStatus(NursingLevel nursingLevel);
}
